<style>
	.content{
		width: 100vw;
		height: 100vh;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
	}
	.top-navbar{
		width: 100vw;
	}
	.main{
		width: 100vw;
		flex: 1;
		background-color: rebeccapurple;
		overflow-y: scroll;
	}
</style>
<template>
	<view class="content">
		<view class="top-navbar">
			<view class="" :style="{height:statusbarHeight + 'px'}"></view>
			<slot name="top"></slot>
		</view>
		<view class="main">
			<slot name="main"></slot>
		</view>
		<slot name="bottom"></slot>
	</view>
</template>

<script>
	export default {
		name:"tip1",
		data() {
			return {
				statusbarHeight:""
			};
		},
		created() {
			this.statusbarHeight = uni.getSystemInfoSync().statusBarHeight
		}
	}
</script>
